package com.volcreate.inn.utils;

/**
 * @author zxc
 * @version 0.0.1
 * @date 2020/8/21
 */
public class MyStringUtils {

    /**
     * s.length in [0,maxSize]
     * @param s String
     * @param maxSize int
     * @return cutString
     */
    public static String stringCut(String s, int maxSize) {

        if (s.length() > maxSize) {
            String cutString = s.substring(0, maxSize);
            return cutString;
        } else {
            return s;
        }
    }


}
